// 导入需要的config和request
import confing from '../config/config.js';
import request from '../util/request.js';


// 申明请求对象
const ssoRequest = {
    // dict请求的基本url
    BASE_URL : confing.SSO_URL + "/sysUser",

    // 用户登陆
    login(user,callback){
        request.post(this.BASE_URL + "/login",user,callback);
    },
    // 验证登陆状态
    checkLogin(callback){
      request.get(this.BASE_URL + "/checkLogin",callback);  
    }
}

export default ssoRequest;